<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Book Store</title>
<link rel="stylesheet" type="text/css" href="${path }/style/style.css" />
<link rel="stylesheet" href="${path }/style/lightbox.css"
	type="text/css" media="screen" />

<script src="${path }/js/prototype.js" type="text/javascript"></script>
<script src="${path }/js/scriptaculous.js?load=effects"
	type="text/javascript"></script>
<script src="${path }/js/lightbox.js" type="text/javascript"></script>
<script type="text/javascript" src="${path }/js/java.js"></script>
</head>
<body>
	<div id="wrap">

		<!-- 头部 -->
		<jsp:include page="../common/header.jsp">
			<jsp:param value="category" name="css" />
		</jsp:include>

		<!-- 左边内容区 -->
		<div class="center_content">
			<div class="left_content">
				<div class="crumb_nav">
					<a href="${path}/index">首页</a> &gt;&gt; 分类图书
				</div>
				<div class="title">
					<span class="title_icon"><img
						src="${path}/images/bullet1.gif" alt="" title="" /></span>分类图书
				</div>

				<div class="new_products">
					<c:forEach var="book" items="${allBook.datas}">
						<div class="new_prod_box">
							<a href="details.html">${book.bookName}</a>
							<div class="new_prod_bg">
								<a href="${path}/book/detail?id=${book.id}">
								<img style="width:80px;height:100px"
									src="${path}/images/book_img/${book.imgUrl}" alt="" title=""
									class="thumb" border="0" /></a>
							</div>
						</div>
					</c:forEach>
				</div>
				<!-- 分页 -->
				<div class="pagination">
					<span class="disabled">&lt;&lt;</span>
					<c:forEach var="pb" begin="1" end="${allBook.pageNum}">
						<span class="${allBook.current eq pb ? 'current' : ''}">
							<a href="${path}/book/category?page=${pb}">${pb}</a>
						</span>
					</c:forEach>
					<span><a href="${path}/book/category?page=${allBook.last}"">&gt;&gt;</a></span>
				</div>
				<div class="clear"></div>
			</div>
			<!--end of left content-->

			<!-- 右边内容区 -->
			<%@ include file="../common/aside.jsp"%>
			<!--end of right content-->

			<div class="clear"></div>
		</div>
		<!--end of center content-->
		<!-- 网站尾部 -->
		<%@ include file="../common/foot.jsp"%>
		<!-- 网站尾部 -->
	</div>
</body>
</html>